var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var c, r = arguments.length, i = r < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, o, n); else for (var s = t.length - 1; 0 <= s; s--) (c = t[s]) && (i = (r < 3 ? c(i) : 3 < r ? c(e, o, i) : c(e, o)) || i);
    return 3 < r && i && Object.defineProperty(e, o, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = cc._decorator, s = r.ccclass, c = r.property, l = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.copyBtn = null, t.pasteBtn = null, t.deleteBtn = null, t;
    }
    return i(t, e), t.prototype.start = function() {}, t.prototype.show = function(t) {
        this.node.active = !0, cc.Tween.stopAllByTarget(this.node), cc.tween(this.node).set({
            scale: 0
        }).to(.2, {
            scale: 1
        }).start(), this.node.setPosition(t.pos), t.isCopy ? this.copyBtn.interactable = !0 : this.copyBtn.interactable = !1, 
        t.isPaste ? this.pasteBtn.interactable = !0 : this.pasteBtn.interactable = !1, t.isDelete ? this.deleteBtn.interactable = !0 : this.deleteBtn.interactable = !1;
    }, t.prototype.hide = function() {
        this.node.active = !1;
    }, a([ c(cc.Button) ], t.prototype, "copyBtn", void 0), a([ c(cc.Button) ], t.prototype, "pasteBtn", void 0), 
    a([ c(cc.Button) ], t.prototype, "deleteBtn", void 0), a([ s ], t);
}(cc.Component);

n.default = l;